package app.modules.cloudpivot.controller;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.authine.cloudpivot.engine.api.facade.OrganizationFacade;
import com.authine.cloudpivot.web.api.controller.base.BaseController;

/**
 * H3yunAuthController
 *
 * @author LiuGangQiang Create in 2025/05/08
 */
@RestController
@RequestMapping("/h3yun/auth")
public class H3yunAuthController extends BaseController {
    @Resource
    private OrganizationFacade facade;

    @GetMapping("/validation")
    public Map<String, Object> validation(@RequestParam String code) {
        Map<String, Object> result = new HashMap<>();
        result.put("mobile", code);
        result.put("clientSecret", "d+Qb0/Ys+r2OZXx1rvnLb+RS9LtJ2wzIplWkRojqe9UkOPxWNgKslA==");
        return result;
    }
}
